Optimal. Leaf size=61 \[ \frac {64 \sin ^7(a+b x)}{7 b}-\frac {64 \sin ^9(a+b x)}{3 b}+\frac {192 \sin ^{11}(a+b x)}{11 b}-\frac {64 \sin ^{13}(a+b x)}{13 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {4372, 2644,
276} \begin {gather*} -\frac {64 \sin ^{13}(a+b x)}{13 b}+\frac {192 \sin ^{11}(a+b x)}{11 b}-\frac {64 \sin ^9(a+b x)}{3 b}+\frac {64 \sin ^7(a+b x)}{7 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 276
Rule 2644
Rule 4372
Rubi steps
\begin {align*} \int \cos (a+b x) \sin ^6(2 a+2 b x) \, dx &=64 \int \cos ^7(a+b x) \sin ^6(a+b x) \, dx\\ &=\frac {64 \text {Subst}\left (\int x^6 \left (1-x^2\right )^3 \, dx,x,\sin (a+b x)\right )}{b}\\ &=\frac {64 \text {Subst}\left (\int \left (x^6-3 x^8+3 x^{10}-x^{12}\right ) \, dx,x,\sin (a+b x)\right )}{b}\\ &=\frac {64 \sin ^7(a+b x)}{7 b}-\frac {64 \sin ^9(a+b x)}{3 b}+\frac {192 \sin ^{11}(a+b x)}{11 b}-\frac {64 \sin ^{13}(a+b x)}{13 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.36, size = 47, normalized size = 0.77 \begin {gather*} \frac {2 (5230+6377 \cos (2 (a+b x))+1890 \cos (4 (a+b x))+231 \cos (6 (a+b x))) \sin ^7(a+b x)}{3003 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.32, size = 97, normalized size = 1.59
method | result | size |
default | \(\frac {5 \sin \left (x b +a \right )}{16 b}-\frac {5 \sin \left (3 x b +3 a \right )}{64 b}-\frac {3 \sin \left (5 x b +5 a \right )}{64 b}+\frac {3 \sin \left (7 x b +7 a \right )}{224 b}+\frac {\sin \left (9 x b +9 a \right )}{96 b}-\frac {\sin \left (11 x b +11 a \right )}{704 b}-\frac {\sin \left (13 x b +13 a \right )}{832 b}\) | \(97\) |
risch | \(\frac {5 \sin \left (x b +a \right )}{16 b}-\frac {5 \sin \left (3 x b +3 a \right )}{64 b}-\frac {3 \sin \left (5 x b +5 a \right )}{64 b}+\frac {3 \sin \left (7 x b +7 a \right )}{224 b}+\frac {\sin \left (9 x b +9 a \right )}{96 b}-\frac {\sin \left (11 x b +11 a \right )}{704 b}-\frac {\sin \left (13 x b +13 a \right )}{832 b}\) | \(97\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 80, normalized size = 1.31 \begin {gather*} -\frac {231 \, \sin \left (13 \, b x + 13 \, a\right ) + 273 \, \sin \left (11 \, b x + 11 \, a\right ) - 2002 \, \sin \left (9 \, b x + 9 \, a\right ) - 2574 \, \sin \left (7 \, b x + 7 \, a\right ) + 9009 \, \sin \left (5 \, b x + 5 \, a\right ) + 15015 \, \sin \left (3 \, b x + 3 \, a\right ) - 60060 \, \sin \left (b x + a\right )}{192192 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.98, size = 73, normalized size = 1.20 \begin {gather*} -\frac {64 \, {\left (231 \, \cos \left (b x + a\right )^{12} - 567 \, \cos \left (b x + a\right )^{10} + 371 \, \cos \left (b x + a\right )^{8} - 5 \, \cos \left (b x + a\right )^{6} - 6 \, \cos \left (b x + a\right )^{4} - 8 \, \cos \left (b x + a\right )^{2} - 16\right )} \sin \left (b x + a\right )}{3003 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 233 vs.
\(2 (53) = 106\).
time = 14.95, size = 233, normalized size = 3.82 \begin {gather*} \begin {cases} \frac {835 \sin {\left (a + b x \right )} \sin ^{6}{\left (2 a + 2 b x \right )}}{3003 b} + \frac {2776 \sin {\left (a + b x \right )} \sin ^{4}{\left (2 a + 2 b x \right )} \cos ^{2}{\left (2 a + 2 b x \right )}}{3003 b} + \frac {2944 \sin {\left (a + b x \right )} \sin ^{2}{\left (2 a + 2 b x \right )} \cos ^{4}{\left (2 a + 2 b x \right )}}{3003 b} + \frac {1024 \sin {\left (a + b x \right )} \cos ^{6}{\left (2 a + 2 b x \right )}}{3003 b} - \frac {1084 \sin ^{5}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos {\left (2 a + 2 b x \right )}}{3003 b} - \frac {64 \sin ^{3}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos ^{3}{\left (2 a + 2 b x \right )}}{143 b} - \frac {512 \sin {\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos ^{5}{\left (2 a + 2 b x \right )}}{3003 b} & \text {for}\: b \neq 0 \\x \sin ^{6}{\left (2 a \right )} \cos {\left (a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 80, normalized size = 1.31 \begin {gather*} -\frac {231 \, \sin \left (13 \, b x + 13 \, a\right ) + 273 \, \sin \left (11 \, b x + 11 \, a\right ) - 2002 \, \sin \left (9 \, b x + 9 \, a\right ) - 2574 \, \sin \left (7 \, b x + 7 \, a\right ) + 9009 \, \sin \left (5 \, b x + 5 \, a\right ) + 15015 \, \sin \left (3 \, b x + 3 \, a\right ) - 60060 \, \sin \left (b x + a\right )}{192192 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.13, size = 45, normalized size = 0.74 \begin {gather*} \frac {-\frac {64\,{\sin \left (a+b\,x\right )}^{13}}{13}+\frac {192\,{\sin \left (a+b\,x\right )}^{11}}{11}-\frac {64\,{\sin \left (a+b\,x\right )}^9}{3}+\frac {64\,{\sin \left (a+b\,x\right )}^7}{7}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________